Component org.nuxeo.ecm.platform.smart.folder.contentviews
In bundle org.nuxeo.ecm.platform.smart.folder.jsf
Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.smart.folder.contentviews">
<extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
point="contentViews">
<documentation>
Content view definition for the smart folder results.
It is bound to the current smart folder properties for the query part, the
sort information, and the selected layout columns retrieval.
</documentation>
<contentView name="nxql_incremental_smart_folder">
<emptySentence>label.content.empty.search</emptySentence>
<translateEmptySentence>true</translateEmptySentence>
<coreQueryPageProvider>
<property name="coreSession">#{documentManager}</property>
<pattern quoteParameters="false" escapeParameters="false">
SELECT * FROM Document WHERE (?) AND ecm:mixinType !=
'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
ecm:currentLifeCycleState != 'deleted'
</pattern>
<parameter>#{currentDocument.sf.queryPart}</parameter>
<sort column="dc:title" ascending="true" />
<pageSize>20</pageSize>
<pageSizeBinding>#{currentDocument.cvd.pageSize}</pageSizeBinding>
<sortInfosBinding>#{currentDocument.cvd.sortInfos}</sortInfosBinding>
</coreQueryPageProvider>
<showPageSizeSelector>true</showPageSizeSelector>
<useGlobalPageSize>false</useGlobalPageSize>
<refresh>
<event>documentChanged</event>
<event>documentChildrenChanged</event>
</refresh>
<reset>
<event>documentChanged</event>
</reset>
<cacheKey>#{currentDocument.id}</cacheKey>
<cacheSize>10</cacheSize>
<resultLayouts>
<layout name="search_listing_ajax" title="document_listing"
translateTitle="true" iconPath="/icons/document_listing_icon.png"
showCSVExport="true" />
<layout
name="document_virtual_navigation_listing_ajax_compact_2_columns"
title="document_listing_compact_2_columns" translateTitle="true"
iconPath="/icons/document_listing_compact_2_columns_icon.png" />
<layout name="document_virtual_navigation_listing_ajax_icon_2_columns"
title="document_listing_icon_2_columns" translateTitle="true"
iconPath="/icons/document_listing_icon_2_columns_icon.png" />
</resultLayouts>
<resultColumns>
#{currentDocument.cvd.selectedLayoutColumns}
</resultColumns>
<selectionList>CURRENT_SELECTION</selectionList>
<actions category="CURRENT_SELECTION_LIST" />
</contentView>
</extension>
</component>